/*
 * @Author: Liz.Zheng
 * @Date: 2021-11-09 15:43:52
 * @LastEditTime: 2021-11-09 15:47:53
 * @LastEditors: Liz.Zheng
 * @Description: 获取、存储主子应用共享数据
 * @Motto: Write the code. Change the world.
 */

import store from "../../store";

const microState = {
  getShareData: (key) => {
    const shareData = store.getters.microShareData;
    if (Object.keys(shareData).length) {
      return shareData[key];
    }
    return null;
  },
};

export default microState;
